home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 60.zip
/
BS1 part 60
/
Digital Sound Studio d1.adf
/
DSSReadME
< prev
next >
Wrap
Text File
|
1993-08-10
|
3KB
|
77 lines
--8/10/93------------DSS8+ ARexx Utility Documentation---------------------
This README contains vital new information on the use and capabilities of
the DSS8+ ARexx utility, DSSRexx. DSSRexx, which can be found in the
ARexx drawer, gives you the capability of changing the Line Level Inputs,
the DCOffset, and the Filter on a hardware level from ARexx. This is very
useful when you need to perform sound sampling operations from your
Multi-Media application. Please fully read the following before calling
Technical Support for assistance.
----------------------------- Getting Started -----------------------------
DSSRexx can be started by double clicking on it's icon or by running it in
the CLI/Shell. Once it is started it will open an ARexx message port to
allow you to control the DSS8+ hardware.
----------------------------- Usage for ARexx -----------------------------
We have provided a script for each of the functions that is fully
documented. You can view these scripts in either a text editor or with a
text viewer such as "More", which is included with your system software.
If you have any difficulties using ARexx please refer to your ARexx manual
from William Hawes or your Commodore Amiga "Using the System Software"
Manual for assistance. For general ideas and ARexx programming help you
should also refer to Abacus books' "Using Arexx on the Amiga" or Merril
Callaways' "ARexx Cookbook" as these are two excellent sources for help.
------------------------ Usage for "C" Programmers ------------------------
As DSSRexx passess it's messages in the standard way, using it from a "C"
program is not difficult.
ARexx communicates with programs by passing messages between standard Exec
message ports. The RexxMsg is an extension of the standard Exec Message
structure, with the additional fields containing Rexx-specific information.
The structure is defined in <rexx/storage.h>. Read the ARexx programming
manual for a more complete description.
DSSRexx parses these RexxMsg's, and returns them (using ReplyMsg()). The
name of the DSSRexx ARexx port is "REXX_DSS8".
DSSRexx only pays attention to a few fields of the RexxMsg; rm_Node
(the Message), rm_Action (for a flag), rm_Result1 (the error code),
rm_Result2 (the secondary result), and the rm_Args[] (the arguments).
The calling program sets the rm_Args[] to each point to an argument. For
example, the equivalent from an ARexx script of:
LEFTGAIN 100
would be:
rm_Args[0] = "LEFTGAIN"
rm_Args[1] = "100"
rm_Args[2] = NULL
.
.
.
Note that all the arguments are text strings, including numbers. If a
secondary result is desired (e.g. the current Left Gain setting), the
calling program should set the RXFF_RESULT flag in rm_Action. (This is
equivalent to saying OPTIONS RESULTS from a script.) The calling program
then PutMsg()s the RexxMsg to the port.
DSSRexx parses the RexxMsg and does the action. It then sets the
rm_Result1 field according to how well it went. 0 is success, and
increasing numbers are worse. (DSSRexx uses AmigDOS's WARN, FAIL and
ERROR codes.) If all is well (rm_Result1 is 0), then the RXFF_RESULT
flag is checked. If it is set, then rm_Result2 is set to point to a
string containing the result. The RexxMsg is then ReplyMsg()ed.
The calling program checks rm_Result1 (and rm_Result2 if desired),
and goes on it's way.